home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ DirShellEx.xpl
< prev
next >
Wrap
Text File
|
1999-06-13
|
2KB
|
76 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="1"
"COUNT"="4"
"UIPATH"="Appearance\Explorer\Context Menu"
"NAME"="Directory Commands"
"VERSION"="2.21"
"LANGUAGE"="VBScript"
"TEXT 1"="1. Name:"
"TEXT 2"="1. Command:"
"TEXT 3"="2. Name:"
"TEXT 4"="2. Command:"
"DESCRIPTION 1"="This plug-in can be used to add two commands to the context menu that appears if you right-click a directory in the Explorer."
"DESCRIPTION 2"="First, enter a name for the command (e.g. "View with Explorer") in the field "Name"."
"DESCRIPTION 3"="Then enter the command that should be executed if the item is selected in the field "Command"."
"DESCRIPTION 4"="The name of the current directory can be inserted through "%1" (explorer.exe "%1")."
"DESCRIPTION 5"="To remove the command again, clear both the "Name" and the "Command" field and press "Apply"."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
sPath1="HKCR\Directory\Shell\XQXSETCMD1\"
sPath2="HKCR\Directory\Shell\XQXSETCMD2\"
sCMD="Command\@"
Sub Plugin_Initialize
s=RegReadValue(sPath1 & sCMD)
if len(s)>0 then
s=RegReadValue(sPath1 & "@")
SetUIElement 1,s
s=RegReadValue(sPath1 & sCMD)
SetUIElement 2,s
end if
s=RegReadValue(sPath2 & sCMD)
if len(s)>0 then
s=RegReadValue(sPath2 & "@")
SetUIElement 3,s
s=RegReadValue(sPath2 & sCMD)
SetUIElement 4,s
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
s1=GetUIElement(1)
s2=GetUIElement(2)
if len(s1)>0 or len(s2)>0 then
Call RegWriteValue(sPath1 & sCMD,s2,1)
Call RegWriteValue(sPath1 & "@",s1,1)
else
if IsEmpty(RegReadValue(sPath1 & sCMD))=false then
Call RegDeletePath(sPath1 & "Command")
Call RegDeletePath(sPath1)
end if
end if
s1=GetUIElement(3)
s2=GetUIElement(4)
if len(s1)>0 or len(s2)>0 then
Call RegWriteValue(sPath2 & sCMD,s2,1)
Call RegWriteValue(sPath2 & "@",s1,1)
else
if IsEmpty(RegReadValue(sPath2 & sCMD))=false then
Call RegDeletePath(sPath2 & "Command")
Call RegDeletePath(sPath2)
end if
end if
End Sub
Sub Plugin_Terminate
End Sub